﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Negocios;

public partial class BuscaUsuario : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnPesquisar_Click(object sender, EventArgs e)
    {
        UsuarioBLL usuario = new UsuarioBLL();
        usuario.BuscarGeral(Convert.ToInt32(ddlTipoCont.SelectedValue), "", Convert.ToInt32(ddlGenero.SelectedValue), Convert.ToInt32(ddlAutor.SelectedValue), Convert.ToInt32(ddlFormato.SelectedValue), Convert.ToInt32(ddlSwf.SelectedValue));
        GridView1.DataBind();
    }
    protected void btnCancelar_Click(object sender, EventArgs e)
    {
        ddlTipoCont.SelectedValue = "0";
        txtNome.Text = "";
        ddlGenero.SelectedValue = "0";
        ddlAutor.SelectedValue = "0";
        ddlFormato.SelectedValue = "0";
        ddlSwf.SelectedValue = "0";

    }
}
